package cn.yili12.business.mq.bean;

import cn.yili12.business.mq.handler.OfflineHandler;
import cn.yili12.business.mq.handler.OnlineHandler;
import cn.yili12.business.mq.handler.ReadHandler;
import cn.yili12.business.mq.handler.SendHandler;
import lombok.Getter;

@Getter
public enum MessageType {

    Online("用户上线", OnlineHandler.class),
    Offline("用户离线", OfflineHandler.class),
    Send("发送消息", SendHandler.class),
    Read("已读消息", ReadHandler.class);
    private String name;
    private Class handlerClass;

    MessageType(String name, Class handlerClass) {
        this.name = name;
        this.handlerClass = handlerClass;
    }
}
